package com.shycloud.mido.organ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.organ.api.entity.OrgOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 机构购买套餐订单MApper
 * @author yyy
 */
@Mapper
@Component
public interface OrgOrderMapper extends BaseMapper<OrgOrderEntity> {

	/**
	 * 查询机构购买订单
	 * @param page
	 * @param start 开始日期
	 * @param end	结束日期
	 * @return
	 */
	IPage<OrgOrderEntity> orgOrderList(Page page, @Param("start") String start, @Param("end") String end, @Param("orgId") String orgId);
}
